<?php
    define('ROOT_DIR', dirname(__FILE__));
    
    function _trace($m)
    {
    	if ( DEBUG == true )
    	{
    		print('<p class="trace">');
			print_r($m);
            print('</p>');
           	flush();
    	}
    }
    
    function Do404()
    {
        header( 'HTTP/1.1 404 Page Not Found' );
        header( 'Location: '.BASE_URL.'Errors/Page-Not-Found/');
        exit();
    }
    
    require_once('application/bootstrapper.php');
    
    $controller = InvokeController();
    $controller->InvokeAction();
    
?>